package com.liush.bookstore.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/*
 * 后台管理控制层
 * */
@Controller
public class ManagerController {

    //跳转后台管理页面
    @RequestMapping("/manager")
    public String manager() {
        return "/manager/manager.html";
    }

    //跳转后台图书管理页面
    @RequestMapping("/manager/book")
    public String managerBook() {
        return "/manager/book_manager.html";
    }

    //后台管理：添加图书
    @RequestMapping("/manager/book/edit")
    public String managerBookEdit() {
        return "/manager/book_edit.html";
    }

    //跳转后台订单管理页面
    @RequestMapping("/manager/order")
    public String managerOrder() {
        return "/manager/order_manager.html";
    }
}
